<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>Insert title here</title>
<script type="text/javascript" src="js/jquery-1.8.3.js"></script>

</head>
</head>
<body>
<table id="tb" style="border:1px solid red;">
    <tr>
        <td>lucy：</td>
        <td>沙发！</td>
    </tr>
</table>
<br />
     昵称：<input type="text" id="txt" value="" /><br />
<textarea id="textContent" rows="10" cols="15"></textarea><br />
<input type="button" value="评论" id="btn1" />
</body>
<script type="text/javascript">
    $(function () {
        $("#btn1").click(function () {
            //创建一行和两个单元格
            $('<tr><td>' + $('#txt').val() + '</td><td>' + $('#textContent').val() + '</td></tr>').appendTo($("#tb"));
        });
    });
</script>
</html>







